import { touchDirection } from "@/utils/touch";
import { useStore } from "vuex";
import { computed } from "vue";
const store = useStore();
let show  = computed(()=>store.state.show)

export const useTogglePopup = (D) => {
    if (show !== "no_show") {
        touchDirection("right", document.documentElement, () => {
            show = true;
        });
        touchDirection("left", document.documentElement, () => {
            show = false;
        });
    }
}